<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Req</title>
</head>
<body>

<form action="/servlet-demo/req3" method="post">
    <input type="text" name = "username"><br>
    <input type="password" name = "password"><br>
    <input type="checkbox" name="hobby" value="1">游泳
    <input type="checkbox" name="hobby" value="2">爬山<br>
    <input type="submit">
</form>

</body>
</html>